Probably should have a total energy function?