Reference implementation of the QiProg protocol