Support sub-doc updates

Found a bug! YAY!