Finished! To delete unneeded functions.