``flag`` isn't used in the ``else`` clause below, so why distinguish here between CSC and CSR? Something is missing below, or this check can be removed.