Changed code for debugging .