0.3.0 refactor
Also moved the VM parameter in the error callback to be first like it is in other callbacks.