Added support for several periods (so far months and weeks)