Print log filename at the beginning
Reorganized lookup tables