Started work on VM functions