Change some writer methods to protected