Add support for configuring the frame length.