Name at least 3 useful purposes for bacterial endospores.

-I have only 2, which are: produce antibiotics and produce toxins that kill insects.

Also, how is the spore location within the cell used to differentiate species?
-All I could find is that the location is species-specific. Does anyone have anymore information than that?