Refactored Profile to cut down on the cyclomatic complexity