Renamed specfn into sfunc