Rest Logic implemented