Added the register API