Comparison chart refactoring & error checking