Making the server available in the callback of run