Use double precision consistently
Remove data race between UI and tracker thread