Move code to server.