Added all the important code to the index