Implemented getting id from server.