Finally figured out how to use managed code in vectors