Context writer partially working.
Half-assed attempt at context writer.