Improved .searchAttachments() and merged .search() and do_select() features