Added catch and timeseries plotting code.