Add custum length to attachment