Changed 'update' to 'wait'event and removed reference to variables for input ports; 'read input' event is optional