Added a done functionality that works for Seq, Or, etc. except Star.