Implemented bck_dist similarly to fwd_dist