Read trace file and bug fixes