Minor afd script cleanup