Adapted to "Fireball" payloads.
Added sample in/output