Corrected API messages receive in Main