Added flatten_schema option.
Added a thought on how to add more extravagant input types.