Actually use the register function as intended