Refactored coefficient storage

Now many triggers can be defined.