It's all the same routine

$MASK