Finished code; to server