Initial version copied from refunited IVR