Managing the rest periods