Skeleton code for async messaging