Improved log parsing script to properly use only middle of trace
Fixed bug in special case testing