Added functionality for 'auto' method creation in maps