Removed unused code in index