Added loop for menu and email functionality