Added email function call back