Add sleep()-workaround.