Closure is working fine