Print only if necessary