Added the control register setting to the library