Max len solution (maybe).