Commented out extra println output since its unneeded at this time.
Another attempt to fix an elusive index out of range error.