cru averaging script