Only one timeout function now. A little cleaner.