Change console.log in wiki function