Adding exit transitions