More elegant definition of runCell.