Why does mode default to None? Shouldn't we always know what mode it is?