Updated login and processing of events