Added commented code to improve class_get function.