Working on the file API (#267).