Added LogFile functionality