Boilerplate code for embedding petitions