Added some code I wanted to make part of my search algorithm