Working with background threads.