Base Settlement code (mostly) done