Before modifying the structure of StageIn and StageOut