Working with M3 API programs