Making server as main