Implemented very basic file logging