Debug code added