Improve cloud code demo