Change to accept file contents instead of file paths.