Removed writeToFile flag.