Expanded the testing section and added an optimizing section