Added branch support for max frame size derivation.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>