Wrote controller