Replaced `activate` and `deactivate` methods by signals.