Revamped to work with r.search().

Still clunky but revamps the script to perform two separate search
queries instead of trying to chug through the whole sub in one go.
Returns a much wider array of results (possibly all of them?).