Modified measurefunction to remove first 10 and last 10 results.