Added clock algorithm. Does not currently work, but is likely related to the hacky sort of stuff done in random. Not currently used.