Unstable solution to ripplecounter