11 functions left need to be refactored tomorrow.