Tried moving key to global