Rename WPR prefixed vars and funcitons