Added some lower-level functions to help with searches