Added more error checks in GetCells