Refactored in order to be pep8 compliant