Move globally defined variables into runtime