Works for rb, rw, and pf! Added some TODOs.