Varied intervals count added

Added varied intervals count support