Added profiling to model loader.