Start of the motion thread