Split writing into more classes.