Generate signatures only for nonempty ones