Added support for category and lang for period generator