Need closure to capture method variable when defining method functions