Added code complexity analysis