Starting to add X86 support, not functional yet