While not actually PBP code, there are several examples on the Proton site which should be easy enough to port