And set the variable correctly