Added support for advanced compilation.