Added support for specyfing number of months to analyse.