Implemented auto-registration for characters