Nice code - but you might want <= instead of just less than, to capture the last value.