Edited SVAR to work with updated mathmagic library.