Add U matrix fcn.