Added some file logging