Handle res in quicksign.