Organized code to look cleaner.