Sorry, it was SetVariable, not Screen Variables. Anyway, the code is this.
I managed to work around it somehow. Thanks for the help regardless.