Fixed file writer stuff.