a system of means and activities whereby a social institution functions; "the complex machinery of negotiation"; "the machinery of command labored and brought forth an order"
to move in a twisting or contorted motion, (especially when struggling); "The prisoner writhed in discomfort"; "The child tried to wriggle free from his aunt's embrace"