Added code from playing with vosim