Copied Lancer from AM v7.