Use CreateLocal in local assign and func params