First attempt at cloud code hooks