Finally runs for both client/server.