Added small synchronization on joining the cloud (forgot to add the tests)