A version I'm stripping down to the bare essentials to understand the internals