Removed all need for IRQ references in sketches and selects optimal clock for least error