(Untested) Ninja PDA code

I'll test this later, but I had to push it out ASAP, gonna reformat very
soon.