Code seems to work now. Next version should add more missed-call feature.