Added support for checking multiple inputs against multiple outputs