Added a registry class for handling singleton classes.