Refine circuit diagram