Added skeleton for matrix update