added teh custom distance feature to 07