Added rudimentary smoothing for returning proximity value