Refactored sreg.