Added a function to show the magnitude