Add OSD function to APM