Ranging with avarage