Frederick wanted an alliance against the Hasburgians .
Mustafa wanted to modernize his state and army .
Frederick wanted an alliance against the Hasburgians , and Mustafa wanted to modernize his state and army .