Fix generateOutput missing return values