Implemented custom model loading.