The stages of a transaction