Rewrite Essentials integration from scratch