First working version able to extract dmesg