Updated grep options and init variables.