Use bound variable in closure