Add upper bound for the dot capacity. Few more features added.