Updated to format the file input correctly.