Added histogram analysis and time period selectors