Changed layout of main function params for easier reading.