Write common setup