Gate machines