Adding stop functionality using signals.