Add cancel command to math