Rewrote before script to allow for any bleeding edge PPA