Working version of file logger --kazu