Added notify function