Added script for actual energy from counter