Made index increment and libraries include from local directory.