ZVISION: More complete engine implementation

Hm, yes, disregard my original post, the code below is OK