Add set_limit/2.
Add new functions: get_limit, prev_allowed, set_limit.