More transition engineering work

Started implementing how previous levels are defined, detected, etc.