Don't reverse and pop, take first match instead