Scoping for fun and profit