Some writer utils