Load valid options dynamically

To prevent undefined constant errors load the currently defined constants dynamically