Made model.log use the file log function.