Automation levels refactoring. isAmmended seem not to work.