Added weighted mean to XICs.