Roman Nurik inspired rewrite. Removed Polymer.