Refactored data structures
log file open