Several Changes to autoloottype command.