Add return for configRegister function