SIR code working again.