Added server socket init code