Worked on emailUpdates function some more