Creates and assigns thread in one command