This should probably be two statements, or `reset` will have either `undefined` or potentially ANY return value