Use $SLEEP_SEC instead of hardcoded 1.