Revert part of a previous commit that moved the clearing of starttime and frequency to the CANCEL action
function rather than doing it directly in the function call.