Wrote final stimulus generation file