Refactored out lregister to own REST method.