Created general structure to respond to the completion of a stage