onMaxReached event added

I've simply added an event to be triggered whenever the current element reaches the max set limit. This gives us flexible control over it.