Refactored and changed console output style.