Code and stuff from post on my blog Brokering Closure