Faster grepping code.