Added stuff to get strain energy