Re-wrote dsNew to check if class is loaded before trying to instantiate it.