Added some signal processing functions