Handle private variable inside block