Renamed function to addToCalendar