Basic Pwisa support

(not actually tested yet, but should mostly work))