Simplifying registration code and exceptions.