With support for threads