Fixed bugs and generated A-F output.