Change "mag" to "magnitude" for clarity