Added option for regressing global mean