Separated mixed levels of code, making it cleaner.