Debugged the code.