Modified simulator to allow loading from local files