Adding 'interval' and 'count' as configurable parameters.