A controller for managing a network comprising managed forwarding elements that forward data in the network, the controller comprising: an interface for receiving input logical control plane data in terms of input event data, wherein said input logical control plane data comprises updates to a plurality of different logical forwarding elements that are implemented across different sets of managed forwarding elements such that the managed forwarding elements of a particular set that implement a particular logical forwarding element process data sent to and from machines logically connected to the particular logical forwarding element according to the control plane of the particular logical forwarding element; and the controller further comprises: an input scheduler for (i) categorizing the input event data into different groups, each group related to a different one of the logical forwarding elements and (ii) scheduling the supplying of the groups of input event data into a converter in a manner that the converter processes each group of input event data related to a particular one of the logical forwarding elements together once an end tag for the group of input event data is received, wherein a group of input event data is related to a logical forwarding element when each input event data in the group is related to a logical datapath set that defines the logical forwarding element; and the converter for converting the input logical control plane data to output logical forwarding plane data that comprises updates to a plurality of forwarding planes of the logical forwarding elements. an interface for receiving input logical control plane data in terms of input event data, wherein said input logical control plane data comprises updates to a plurality of different logical forwarding elements that are implemented across different sets of managed forwarding elements such that the managed forwarding elements of a particular set that implement a particular logical forwarding element process data sent to and from machines logically connected to the particular logical forwarding element according to the control plane of the particular logical forwarding element; and the controller further comprises: an input scheduler for (i) categorizing the input event data into different groups, each group related to a different one of the logical forwarding elements and (ii) scheduling the supplying of the groups of input event data into a converter in a manner that the converter processes each group of input event data related to a particular one of the logical forwarding elements together once an end tag for the group of input event data is received, wherein a group of input event data is related to a logical forwarding element when each input event data in the group is related to a logical datapath set that defines the logical forwarding element; and the converter for converting the input logical control plane data to output logical forwarding plane data that comprises updates to a plurality of forwarding planes of the logical forwarding elements. an input scheduler for (i) categorizing the input event data into different groups, each group related to a different one of the logical forwarding elements and (ii) scheduling the supplying of the groups of input event data into a converter in a manner that the converter processes each group of input event data related to a particular one of the logical forwarding elements together once an end tag for the group of input event data is received, wherein a group of input event data is related to a logical forwarding element when each input event data in the group is related to a logical datapath set that defines the logical forwarding element; and the converter for converting the input logical control plane data to output logical forwarding plane data that comprises updates to a plurality of forwarding planes of the logical forwarding elements.