Added main method for server only