Use anon namespace for local helber functions