Added my function to socode