Fix mis-labelled error
Add group functions
Implement recursiveSearch - not yet tested