Now runs model forever without memory issues (fixes #60)