New obs dist function added