Fleshed out qemu hook a bit more