Added code for debugging .