Moved APM API to loader stage 2.