The cyclomatic complexity of this method is over 9000!