ITTE-941 - Refactored main method of the task.