Optimisation for window metrics.