Avoid global variable