Add setting of W and L flags.