Added interrupt signal support. Now it works as you'd expect.