Added function to find motif in the whole file