Improved UserID support, Added debugMode