Improved compilation process