Move global input vars to function