Fixing naming function

- now assumes that only 1 socring function as input