Updated the calendar API