Add a matrix overlapping warning checking