A simplified Ril version