Add auto discover by name function and related constants