What was Gavrilo Princip's motive for assassinating Franz Ferdinand?

He was promoting Serbian nationalism.
He was protesting the entangling alliances of Europe.
He was part of a Serbian militaristic program.
He was fighting for Austrian imperialism.