Add libraries and update server code