Added logic to handle CyclomaticComplexity and NPathComplexity.