Avoid global variables.