Minor tweaks
Only compile Pattern once
Do not increase cancels if a trigger is not occurring
Update method of obtaining Log
Remove command for resetting cancels - it is no longer needed.