Added condition to print by line tags only when respective toggle are on.