Remove uneeded global variable