Changed PlotState to enum