Added detection of missed calls. As part of this I moved some of the connections...