Refactoring. Command class. Example settings.