New error/exception management and class optimisations.