Use "read -t" instead of sleep