Finished the code! All that is left is commenting now.