Added grep function.