Update script for new payload schema