Changed the search for address method.

The current implementation was not adding funds on my server, so I explored the code. 

I changed the if statement to a for loop. I also added a default so that the system will still be healthy after funds are added.