Working patterns implementation. Removed the simple random clocks.