Working on signal processing routines