RF: Better error handling and better handling of all-zero signals.