Use lines/unlines for outputs/leaked_outputs format