Xinhuan:
	- Fix background optimizing of routes. Fix timers for foreground and background processing when optimizing routes.
	- Replace 1/0 with math.huge to prevent future errors on PTRs.
