Added variable length for plant stems