Introduce a sleep because otherwise we get a "connection refused" error.
Add json formatters for all features. Refactor