Changed the interface to move call to provider within the loader itself