Add metadata debug log.
Add basic parameter search.
Tweak resource queries.