Change exec function for %x