Ocean debugging: modify saveModel