Started implementing vm routines