Added a main with cli parameters.