Add res_s definition