Amalog code shared across implementations