Final Version; add substituion for 'mag' to 'Magnitude'
Final version