Distance Flow