Added code to get events from calendar