Removed un-needed file writing.