Added code for periodic location updates, as well as enabling and
disabling the buttons depending on if a pin is in range.