Added ability to register custom attribute handlers.