PR as a function
Revert "PR as a function"

This reverts commit 1d34f3b2dd5615fb232f16540f00e0e4cecfa2f6.