Varied intervals count support added

Added varied intervals count support