Update library to support chaining menu dynamically.