Added functions and email field