Moved star radius-based masking to new routine