Modified some variable in the psrs function