Added the provider function
Fixed the getURL function