Adapted scripts to avoid division by zero error.  Added capability for cells to follow other cells