Fixed using file instead of url (file is for testing)