Added global structures to store vmid and shares