Made the code variable global