Added matrix normalization, although it’s not yet fully functional.