Trying to get timed_wait() to work.