Tidy notify function