Finished code. Need to load in extenstion and test.