Adding in the ability to do automatic registration via a constructor.