Make program more readable and more modular.