[Tested]Removed debugging code.