Started added static/dynamic scoping functionality. It is still a work in progress. I probably won't get a stable build until at least later tonight.