Throughout World War I, for which activity were airplanes most often used?

bombing targets on land
transporting soldiers and weapons
fighting
gathering information