Add PRR as parameter - the code gets worse and worse