Add prepare stage, pack payload to base64