Updates for matrix generation.