Added global normalization for std threshold.

This is an experimental change.