Clean up main script. Move more VARS under /utils