1. A method comprising: storing in a device a static policy framework and one or more dynamic policy algorithms; controlling policy management in the device by operating the static policy framework and executing one or more of the dynamic policy algorithms; where the dynamic policy algorithms are stored in memory as a structure of commands which operate on registers, further comprising, reading input values provided by the static policy framework to the registers before execution of a dynamic policy algorithm; and writing output values from the registers to the static policy framework after execution of the dynamic policy algorithm.