This is done before the running time comparison. The new masking function should be use in all examples if better.