Changed model_loop() to return the spin container.
Authored by: bugman 2008-09-24
Parent: [r7237]
Child: [r7239]