Clean server code