Changed signature for the retypeResults function.
Added function resultSignal.