Added Config constructor
Rewrote limit checking without count