Dpc more

The mask calculation is used on this dpc code. Please merge this first.