Added a state value to know whether we're in subscript.