Work to try to filter out erroneous values from the sonar.