Adding correct arity to curry function.