Committing distance and getCurrentLocation methods