First draft for use of external grep