Clean up json, debug statements.