Added helpful file logging feature