Keeping the thread alive.