Capture local variables from binding