Prettified the terminal. Refactored code.