Added asynchronous message fetching
Fixes issue with script hanging after attempting to fetch too many messages at once