Changed energy network to be ticked based instead of event based