Used some more idiomatic Ruby for search terms