Added maybePrint.