Use data for dropdowns from SchemaInfo package.
Remove debug statements and start to clean code.