Implement KHD protocol