Extrapolated logic for setup and teardown