Added my function to socode experiment.