Re-implementing convert method to work with local files.