Add curry function.