Changed register-method