Added file logging features