waitseconds set to prevent timeout