Added mask option for zscore.