Port the `coin' plugin from VitaminA