Try to do model fitting in a script rather than from the command line.