Add callbacks.
Add customizable maximum values for segments.