Changes to calendar function.