Implement mask option