adding `max` field

Adds a `max` field as the third argument so that more than one function
call can happen within the millisecond time.
adding tests
version bump