Added framework for stages 1-3