Added script phantomas_masks
Corrected bug.