Implemented the register transfer properly