updating code and document to use 'slow-roll' condition