Changed how main script is run