Added system("pause"); and integer cell type!