[WIP] Basic logical search (single callback)

(**Not ready for merge**)

Currently, this works, but isn't entirely satisfying. There's no way to watch for future changes in logical groupings.