Use code variable for the exit command (more logical)