Added magnitude method for convenience