Refactored code style.