Arranging or regulating something to bring it into a proper state or position or to put it in good working order.