Small Grep fix
Doc
Avoid global var