Add function for com_calendar