Set up work mask. Now for the msk_fcn