Add new curry() function.