Began writing emailUpdates function