Scopebuilding

I think this does everything it needs to do, but let me know if I overlooked something.