Implemented global data and added them to server codes