Forked version for ROAP KSP