Code for SRP