Added seeting of VM memory functionaliy