PTTD and RIPPER implementation