Added code to check location every 20 seconds