Set distance as null
Call distance database method
Set variables for holding distance
Set up methods to get distance / update distance
Set progress bars based on distance