Changed how main works.