Now works with all combinations of legal input stats.