if structure takes too much time

Still waiting for the schematic...