Added method for SetComplexity