Shared code for CASCADE ABM