The Importance of Controlling Composition to Tailor the Properties of Magnetic Thin Films