Modified the beam2d interface.