Curling emulation using EH in OTP