Removed unnecessary setOutputs and refactored the logicalFunction architecture, just simple thinks