Changed active_vm to active_app because it makes more sense