Added captured variable support.