function readEvent input Integer queue; input Integer position = 1; output stdEvent e; output Integer out; end readEvent;