Added code in the Server class.