Almost done with selection stuff. Working on a bug that is caused by the search function not finishing executing before the other lines execute.