Added polling cloud code