Updated method creation code in vml.