Added print_mat