Added fields optin, amount to the data schema.