Replace dump with console.log