The back-end code for the register repository