Consider converting this to a method rather than a closure.