Updated calendar functionality.