Redefine server as fn