Wrote preprocessing