implemented two other methods to keep the SR cycle stable (both commented out at the moment, as Luca's method seems to be the best and simplest)