Renamed highlighted to hl for readability
Made log colorization more robust