Autonaming SPCO elements - need help with custom function