Add state column to q and qset