Fixed indexing problem. Nicer formated output