Rest logic