Working advanced compilation
Finish adding advanced compilation