Updated the rotation dynamcis and the H matrix.