changed mindistance and mintime to get more accurate reading