Regulation of directed motility in Myxococcus xanthus