Added timeout if search takes longer than 45 seconds