Removed duration configuration.
Added config file support.