added sleep periods