Uncommented server registration logic