Changed to loop to match Matlab version.
Verbose=False for tests.