Schema discovery function work