Calc distance based on entered location. Fix dist bug.