Tested version of register command