Added progress callback to engine's compile method