Converts to schema but looks like a mess