Worked out communication strategy between input and output handlers.