Clearing test.

Using max of mean distribution to find z position.