Added support for adding restricting time period.