Write part of compute