Code Manipulation for Virtual Platform Integration