Added the calendar functionality.