Added rf stats function