Touch up psgrep func