Refactor params from console arguments.