Variable asignment needs to be global