This needs some explanation, why is mask using random values?