Changest to allow clock to run at arbitrary frequencies.