Added a limit to tracking distance