Refactor output into separate class. Add JSON.net. JSON output for status: ready, pass/fail.