Add possibility to stop simulation by giving end predicate.
Add support for running simulation for given time using :duration option