Removed Debug code