Added more skeleton phases to processing the scope tree.