Added syncing of messages to force waiting for all messages instead of race condition.
Merge pull request #22 from zephyyrr/feature/deterministicmessages

Added syncing of messages to force waiting for all messages