Integrated metrics and fixed compilation with new compiler