We probably also want to allocate a slot in the vm for this and I think it would be better to also handle the setting of this then there as well.