Toggling of R peaks now works