Changed access layer to take a URL as parameter.