Dynamicshould

Trying to implement the functionality discussed in issue #138.