Adding beginning of event cleanup cloud code