Clock changes

Some changes to accomodate the 4MHz clock over the 20MHz clock