Add function to churn through dhrough differences and update main state table