Modified for checking New and Old Matrices