Use thread.join() instead of an event