Added toggle for tracking. Shutting down the program fails..