Moved package registration to register() method