Added notification function.