Added rules for connections. Connect only to allowed input for specific output.