Added check for signal output length