I think it works for both. If you lose lucidity you go back into regular dreaming, so increasing lucidity would increase the dream length as well.