Fix traces + various minor fix to make it work inside the robot.