First cut at compilation phases
Added additional advance compilation node