Adapted serve script