Added edit sr function