Adding some function (Calendar Plugin)