Adding cap and lenght