Threads

Add a background thread.