Use Correlate `valid` function.

The Correlate `valid` function needs to return less then, equal to or
greater than, instead of true or false, but this is a start.

Close #81.