Addin policy code