Fixed reading from logfile and routing