Lots of file access stuff.