Added implementation for two input processor with switching posibility