Update cloud code