Wrapped everything in a closure