Using 'distributed' instead of 'inserted'. Other tweaks.