Added agenda.cancel function