Added support for updating max-time on the fly.