Mainstate removed, setColor added