Improved setup server script