Finally got most of the energy system working