Allow custom printing fn via main options