Added capability to read the depth from the first line of the log file