Code for the SR comp