Add method submitThread()