Fix problems from previous PRs
Refactor common code into a -peripheralsSignalForSelector: