Signals

Fixes #1.