Fixed duration caclulation bug
Fixed pushing duplicate traces onto stack