WIP on phase 3. Does not build.