A lock system including an electronic lock and a wireless device having a location determining utility configured to determine a location of the wireless device. The electronic lock and the wireless device communicate wirelessly with one another and send commands to and from one another to perform a specific task when the wireless device is within a specified range of the electronic lock. The location of the wireless device and a speed of the wireless device may be used to calculate an estimated arrival of the wireless device at the electronic lock, and the specific task may be performed substantially at the estimated arrival.