Formatted output to index