Allow for threads to be customized