[LMP Potorchu] Check if projectM is initialized.
[Otlozhu] Rewrote data() with a switch.