Removed useless code
Added debug statement