Switching to use the more compatible get_class.