Avoid global variables