[signal] Updated program for working with any data