Move clock bits code to raw library.