It was written and produced by Jackson , in collaboration with James `` Jimmy Jam '' Harris III and Terry Lewis .
`` Rythm Nation 1814 '' , released before 1990 , has the song `` Rythm Nation '' as its second single .