Bugfix+different trace length detection added to fitness function.