Could we break this into smaller private methods that clarify what each line does?