Swap out distance calculation for relative calculation