Modified signal_processing.c