Updated import functions to accept local files.