Added more input cases.