New matrices functions.