Removed indexing processes and fixed System.out prints