Removed unnecessary calls to updateMatrix.