Added file logging capability