Setting variables out of scope