Added COG source masks, fixed SPR offsets.