Incorporated stages into root build.