Refactoring of input and output signals