Add state variable support to NQPLexPad.