Added sandbox for running code, fixes scoping problems