Add sleep method