before handling delays
Stable version