Tuning the Properties of Magnetic Nanowires