Energy from reading file now works.