Move Writer to libutils