Segfaults fixed, indexing fixed.\n