Using a new thread object to avoid installing pause