Added check for grep