Initial commit of working masking code, basic demo