Added support for dynamic length platforms.