Changed instantiation API and run API