Avoid global vars