Notify function should be exported