Incorporate timeout into select.