Updated minor as matrix is not compatible.