Now using certificate chains, added stop callback