Remove some writelines