Refactored to PEP8.