Moved file searching to a seperate method searchForFile(...)