Add upvalue list in function.