First working version with SOC control and GUI ON/OFF button