Server debug code added