Adding length for logic problems