Added a timeout else statement after select, but they are never triggered.