Moved to more conventional method of spawning classes with a variable class name.