Added automatic loading of API model