CLI yellow
Refactoring of the main method.