Add support for signals

@ping juriansluiman