Refactored complexity methods that do more than one task.