Bug fixing and Complexity analysis