Now working. Had to add reset matrix.