Added support for LOCATE operation

I honestly don't recall, but I think I ran into an issue with this code at some point and changing that fixed it.  Perhaps it was in the testing code that has since been removed.