Addition of mask and update to extent.